package com.csproj.system.service.mapper;


import com.csproj.siiat.service.mapper.EntityMapper;
import com.csproj.system.domain.RoleInfo;
import com.csproj.system.domain.UserInfo;
import com.csproj.system.service.dto.UserInfoDTO;
import org.mapstruct.Mapper;



/**
 * Mapper for the entity UserInfo and its DTO UserInfoDTO.
 */
@Mapper(componentModel = "spring", uses = {RoleInfoMapper.class, })
public interface UserInfoMapper extends EntityMapper<UserInfoDTO, UserInfo> {



    default RoleInfo fromId(String id) {
        if (id == null) {
            return null;
        }
        RoleInfo roleInfo = new RoleInfo();
        roleInfo.setId(id);
        return roleInfo;
    }
}
